import Taro, { Component} from '@tarojs/taro'
import { View,Image} from '@tarojs/components'
// import { connect } from '@tarojs/redux'
// import { add, minus, asyncAdd, ooo} from '../../actions/counter'
import { imgUrl } from '../../config'
import Zujian  from '../component/components'
import './demo.scss'


class Demo extends Component {

  // config = {
  //   navigationBarTitleText: '首页'
  // }
  constructor (props) {
    super(props)
    this.state = { 
 
     }
  }
  add(){
      Taro.redirectTo({
        url: '/pages/index/index'
      })
  }
  // add1(){
  //     Taro.redirectTo({
  //       url: '/pages/demo/demo'
  //     })
  // }
  render () {
    return (
      <View className='index'>
         <View className='head'>
            {/* <View className={active ? 'gc active':'gc'} onClick={this.add}>广场</View> */}
            <View className='gc' onClick={this.add}>广场</View>
            <View className='active wd' onClick={this.add1}>问答</View>
            <Image src={`${imgUrl}/serch.png`} />
        </View>
        <View className='no'>
          <Zujian name='暂未开启，敬请期待' />
        </View>
      </View>
    )
  }
}

export default Demo
